package com.sky.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class AddEmployeeDto {

    @NotBlank(message = "身份证号不能为空")
    @Size(min = 18, max = 18, message = "身份证号为18位")
    private String idNumber;
    private String name;
    @NotBlank(message = "手机号不能为空")
    @Size(min = 11, max = 11, message = "手机号为18位")
    private String phone;
    @NotBlank(message = "性别不能为空")
    private String sex;
    @NotBlank(message = "用户名不能为空")
    @Size(min = 3, max = 15, message = "用户名只能为3-15位")
    private String username;
}
